Cannot have aggregate function in WHERE clause <clause>. (Error 3096)
You cannot use an
aggregate function
in the WHERE clause
of an
SQL statement
.